<fieldset>
    <legend>Información infraestructura existente</legend>
    <table border="1">
        <thead>
            <tr>
                <td>Tipo de infraestructura</td>
                <td>Estado</td>
                <td>Medida</td>
                <td>Otro</td>
                <td>Observación</td>
                <td>Editar</td>
                <td>Borrar</td>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($infrastructures as $infrastructure): ?>

                <tr>
                    <td><?php echo $infrastructure['Infrastructure']['tipo']; ?></td>
                    <td><?php echo $infrastructure['Infrastructure']['estado']; ?></td>
                    <td><?php echo $infrastructure['Infrastructure']['cantidad']; ?></td>
                    <td><?php echo $infrastructure['Infrastructure']['otro']; ?></td>
                    <td><?php echo $infrastructure['Infrastructure']['observacion']; ?></td>
                    <td><?php 
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6  && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Editar", array('controller' => 'Infrastructures', "action" => "edit", $infrastructure['Infrastructure']['id'], $this->data['Infrastructure']['poll_id']), array('update' => 'infrastructures', 'indicator' => 'loading'));
                    }?></td>
                    <td><?php
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Borrar", array('controller' => 'Infrastructures', "action" => "delete", $infrastructure['Infrastructure']['id'], $this->data['Infrastructure']['poll_id']), array('update' => 'infrastructures', 'indicator' => 'loading'), '¿Desea Eliminar El Registro?');
                    }
                     ?></td>
                </tr>

            <?php endforeach; ?>
        </tbody>
    </table>
    <?php 
    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
        echo $ajax->link("Adicionar", array('controller' => 'Infrastructures', "action" => "add", $this->data['Infrastructure']['poll_id']), array('update' => 'infrastructures', 'indicator' => 'loading'));
    }
         ?>
</fieldset>
